<!-- header -->
<jsp:include page="header.jsp">
	<jsp:param name="title" value="Register"/>
</jsp:include>
<script type="text/javascript" src="js/register.js"></script>
<!-- / header -->

<%
	String redirect = (String) request.getAttribute("redirected_from_home");
	if( redirect == null || !redirect.equalsIgnoreCase("true") ) {		
		response.sendRedirect("/writeonproject/home");
	}
	
	String uid = (String) request.getAttribute("userid");
	if( uid != null ) {		
		response.sendRedirect("/writeonproject/home");
	}
%>

<!-- content -->
	<div class="body7">
		<div class="main">
			<section id="content">
				<div class="wrapper">
					<article>
						<div class="pad1">
							<h2>Register</h2>
							<div id="register">
					             <p class="info">* Required information</p>
								
							  <form id="register" method="post">
									<div class="wrapper">
										<strong>Username *</strong>
										<div class="bg"><input class="reg_field" type="text" value="" name="username" maxlength="32"></div>
									</div>
									<div class="wrapper">
										<strong>Password *</strong>
										<div class="bg"><input class="reg_field" type="password" value="" name="password" maxlength="32"></div>							
									</div>
									<div class="wrapper">
										<strong>Confirm Password *</strong>
										<div class="bg"><input class="reg_field" type="password" value="" name="password2" maxlength="32"></div>							
									</div>
									<div class="wrapper">
										<strong>E-mail *</strong>
										<div class="bg"><input class="reg_field" type="text" value="" name="email" maxlength="32"></div>							
									</div>
									<div class="wrapper">
										<strong>First Name</strong>
										<div class="bg"><input class="reg_field" type="text" value="" name="firstname" maxlength="24"></div>							
									</div>
									<div class="wrapper">
										<strong>Last Name</strong>
										<div class="bg"><input class="reg_field" type="text" value="" name="lastname" maxlength="24"></div>							
									</div>
									<div class="wrapper">
										<strong>Location</strong>
										<div class="bg"><input class="reg_field" type="text" value="" name="location" maxlength="32"></div>							
									</div>
									<div class="wrapper">
										<strong>Gender</strong>
										<div class="bg">
											<select id="gender">
												<option value="SELECT">Select...</option>
												<option value="MALE">Male</option>
												<option value="FEMALE">Female</option>
												<option value="OTHER">Other</option>
											</select>
										</div>							
									</div>
									<div  class="textarea_box">
										<strong>About Me</strong>
										<div class="bg"><textarea name="bio" cols="1" rows="1" type="text" value="" name="bio" maxlength="4096"></textarea></div>						
									</div>
								</form>
							</div>
							<a href="#" class="button" onclick="submitForm()"><span><span>Register</span></span></a>
							<div id="aftersubmit">
							<p><i>Registering... Please wait.</i></p>
							</div>
						</div>
					</article>
				</div>
			</section>
		</div>
	</div>
	<!-- / content -->

<!-- footer -->
<jsp:include page="footer.jsp"/>
<!-- / footer -->